import type { InvoiceTitle } from '@/types/api'

interface FetchInvoiceTitleListAPIResData {
  code: number
  msg: string
  time: string
  data: InvoiceTitle[]
}

interface FetchInvoiceTitleListAPIParams {
}

export function fetchInvoiceTitleListAPI(params: FetchInvoiceTitleListAPIParams, token: string) {
  return httpInstance.get<FetchInvoiceTitleListAPIResData, FetchInvoiceTitleListAPIParams>(
    '/api/order/listinvoiceheader',
    { params, headers: { token } },
  )
}
